Skip to content

Use Python 3.9 typing features#127

Merged
mx-moth merged 3 commits into
mainfrom
pep-585-generics
Jan 11, 2024
Merged

Use Python 3.9 typing features#127
mx-moth merged 3 commits into
mainfrom
pep-585-generics

Conversation

@mx-moth

@mx-moth mx-moth commented Jan 11, 2024

Copy link
Copy Markdown
Contributor

As support for Python 3.8 was dropped, we can now use typing features introduced in Python 3.9, specifically PEP 585 – Type Hinting Generics In Standard Collections. Additionally, from __future__ import annotations is dropped as Python type annotations seem to be moving towards PEP 649 annotation scopes.

Part of #109

Python does not appear to be heading in this direction and is
considering other approaches to annotations. This future import is
dropped so that we stop relying on a feature that may not come to pass.

See also #109, https://peps.python.org/pep-0649/
@mx-moth mx-moth merged commit 52b0f84 into main Jan 11, 2024
@mx-moth mx-moth deleted the pep-585-generics branch January 11, 2024 06:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant